package com.zxp.cloud.storage.model;

import com.zxp.cloud.core.db.idgen.SnowflakeGenerator;
import com.zxp.cloud.core.db.jpa.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存
 * @author zxp
 * @date 2021/7/19 17:14
 */
@Entity
@Data
@Table(name = "shop_storage")
public class Storage extends BaseEntity {

    private Long productId;
    private Integer total; // 总库存
    private Integer used; // 已用库存
    private Integer residue; // 剩余可用库存

}
